package com.example.demo.controller;

import com.example.demo.data.MenuData;
import com.example.demo.domain.ResultVO;
import com.example.demo.util.StringUtil;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Controller
public class StoryController {

    @RequestMapping("/")
    public String index(Model model) {

        model.addAttribute("buttonList",MenuData.menuData);
        return "index";
    }


}
